package com.project.class8_24.decoration;

/**
 * 牛奶配料
 */
public class Milk implements Iaccesories{
    private IProduct product;
    public Milk(IProduct product){
        this.product = product;
    }

    @Override
    public String getInfo() {
        return product.getInfo()+"加上牛奶 ";
    }

    @Override
    public int getPrice() {
        return product.getPrice() + 3;
    }
}
